import './assets/styles/index.css'
import _ from 'lodash'
import printMe from './print.js/index.js';
function component() {
  const element = document.createElement('div')
  const btn = document.createElement('button')

  // lodash 是由当前 script 脚本 import 导入进来的
  element.innerHTML = _.join(['Hello', 'webpack'], ' ')
  element.classList.add('hello')
  btn.innerHTML="点我"
  btn.onclick=printMe
  element.appendChild(btn)
  return element
}

document.body.appendChild(component())
